import request from '@/utils/request'

// 钱包列表
export function walletList() {
    return request({
        url: 'api/wallet/walletList',
        method: 'get'
    })
}
//钱包删除
export function deleteWallet(id) {
    return request({
        url: 'api/wallet/deleteWallet',
        method: 'post',
        data: {
            id
        }
    })
}
//编辑钱包
export function editWalletCommit(data) {
    return request({
        url: 'api/wallet/editWalletCommit',
        method: 'post',
        data
    })
}
// 钱包增加
export function newWallet(data) {
    return request({
        url: 'api/wallet/addWallet',
        method: 'post',
        data
    })
}
//币种列表
export function currencyList() {
    return request({
        url: 'api/wallet/currencyList',
        method: 'get'
    })
}
